package com.ftg.learn.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.web.client.RestTemplate;

//消费
//..从生产者
@Repository
public class HelloDao {

    @Autowired
    RestTemplate restTemplate;

    public String hello(){
        return restTemplate.getForObject("http://SHENGCHANZHE/hello",String.class);
    }

}
